appSkeleton.config(function ($routeProvider) {

        $routeProvider.
            when('/', {
                template: '<function></function>'
            })
            .when('/function_B_lazyload', {
                template: '<function-b></function-b>',
                resolve: ['$ocLazyLoad', function ($ocLazyLoad) {
                    return $ocLazyLoad.load({
                        name: 'xcomponent-widgets',
                        files: [
                            'bower_components/xcomponent-widgets/build_on_demand/build/function_B.min.js',
                            'bower_components/xcomponent-widgets/build_on_demand/build/function_B.min.css'
                        ]
                    });
                }]
            })
            .when('/function_B', {
                template: '<function-b></function-b>'
            })
            .when('/function_A_lazyload', {
                template: '<function-a></function-a>',
                resolve: ['$ocLazyLoad', function ($ocLazyLoad) {
                    return $ocLazyLoad.load({
                        name: 'xcomponent-widgets',
                        files: [
                            'bower_components/xcomponent-widgets/build_on_demand/build/function_A.min.js',
                            'bower_components/xcomponent-widgets/build_on_demand/build/function_A.min.css'
                        ]
                    });
                }]
            }).when('/function_A', {
                template: '<function-a></function-a>'
            });


        ;
    }
);
